package com.by.feign;

import com.by.api.product.SpuRemoteClient;
import com.by.api.product.bean.StockBean;
import com.by.common.bean.ResultBean;
import com.by.common.core.controller.BaseController;
import com.by.service.SpuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
@RestController
public class SpuFeignController extends BaseController implements SpuRemoteClient {
    @Autowired
    SpuService spuService;
    @Override
    public ResultBean updateStock(List<StockBean> beanList) {
        int rs = spuService.updateStock(beanList);
        return updateResult(rs);
    }
}
